package com.zhangzhan.blog_api.controller;


import com.zhangzhan.base.common_model.result.ResponseResult;
import com.zhangzhan.blog_model.entity.ArticleTag;
import com.zhangzhan.blog_service.service.ArticleTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 文章标签关联表 前端控制器
 * </p>
 *
 * @author zhangzhan
 * @since 2024-01-29
 */
@RestController
@RequestMapping("/article-tag")
public class ArticleTagController {

    @Autowired
    private ArticleTagService articleTagService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    private ResponseResult<List<ArticleTag>> list(){
        return ResponseResult.okResult(articleTagService.list());
    }
}

